package com.qfmy.webapp.controller.user;

import com.qfmy.common.result.Result;
import com.qfmy.model.vo.user.SignInRewardVo;
import com.qfmy.webapp.service.user.SignInRewardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 清风明月
 * @Package com.qfmy.webapp.controller.user
 * @date 2025/11/26
 * @description 签到奖励表
 */
@RestController
@SuppressWarnings("all")
@RequestMapping("/app/signInReward")
public class SignInRewardController {

    /**
     * 注入service
     */
    @Autowired
    private SignInRewardService signInRewardService;

    /**
     * 获取所有的签到奖励
     */
    @RequestMapping("/getAllSignInReward")
    public Result<List<SignInRewardVo>> getAllSignInReward() {
        List<SignInRewardVo> list = signInRewardService.getAllSignInReward();
        return Result.ok(list);
    }

}
